package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

/**
 * 账户间收款交易Form
 * 
 * @author maxianbo
 * 
 */
public class InnerCollectForm extends InnerTransactForm {
    private String debit;

    private long creditSubAccountId;

    public InnerCollectForm() {
        this.debit = "";
        this.creditSubAccountId = 0;
    }

    public long getCreditSubAccountId() {
        return this.creditSubAccountId;
    }

    public void setCreditSubAccountId(long creditSubAccountId) {
        this.creditSubAccountId = creditSubAccountId;
    }

    public String getDebit() {
        return this.debit == null ? null : this.debit.toLowerCase();
    }

    public void setDebit(String debit) {
        this.debit = debit == null ? null : debit.toLowerCase();
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
        if (isResetable()) {
            this.debit = "";
            this.creditSubAccountId = 0;
        }
    }
}
